#modname "Awesome Populations 1.03"
#description "This mod makes small changes to (mostly) independent unit types in an attempt to make the early game more interesting."
#version 1.03
#icon "./AwesomePop/AwesomePop.tga"
#domversion 3.28

------------ Developer Notes ------------

Mod Compatibility: Theoretically this mod is compatible with everything.  It doesn't add any new units, only changes costs and stats of existing ones.
However other mods like CBM probably do that too, so who knows.  In any case I doubt the overlap would be too disruptive one way or the other.

This mod is by Schneeble.

If you have feedback regarding this mod, please find me on IRC (#dom3goons on irc.synirc.net).

------------ Full Change Log ------------

0.10 (Initial build)
0.11 Placed names twice in units that used the copy commands.  Otherwise some units would lose their new names.

1.00 Added Milesian Slingers.  Release version.
1.01 Fixed banner.
1.02 Missed a triton sprite before.  Added it in.
1.03 Triton Knight is a cavalry unit.  In the interest of uniformly "fixing" independent cavalry costs I've tweaked it.
	Fixed mysteriously naked and unarmed Satyr Skirmisher.
	Changed Edomite description slightly to avoid redundancy.

------------ End Change Log ------------

------------ Contents ------------
--- Armor (22, 23, 84, 85)
--- Units (many, organized in ascending order)

--- Armor ---

--Coral Cuirass
#selectarmor 22
#rcost 5
#end

--Coral Hauberk
#selectarmor 23
#rcost 7
#end

--Amber Hauberk
#selectarmor 84
#rcost 15
#end

--Amber Shield
#selectarmor 85
#rcost 6
#end

--- Units ---

--Archer gets MM 2
#selectmonster 17
#mapmove 2
#end

--Militia to satyr
#selectmonster 18
#clear
#name "Satyr Skirmisher"
#descr "Satyrs are wild men with the hindquarters and horns of a goat.  They are powerfully built and can easily outrun the swiftest of humans.  Satyrs are selfish beings who lack discipline and will quickly flee from battle if the odds are against them.  Their strong connection with Nature gives satyrs strong resistance to magic.  Satyrs are often stealthy and useful as scouts."
#copystat 228
#copyspr 228
#name "Satyr Skirmisher"
#weapon 1
#weapon 21
#armor 44
#end

--Heavy Cavalry to armored raptor
#selectmonster 19
#clear
#name "Raptorian Mercenary"
#descr "Ages ago, the Caelian community was torn apart as the wild clan of the Raptors from Raven's Vale revolted against the rule of the Seraphs.  Under the leadership of the Harab Seraphs, they waged a long and fruitless war with Caelum.  Finally, they were expelled from their home.  Their legends tell of a great ruler who will lead them back to their homeland in triumph."
#copystats 1278
#copyspr 1278
#name "Raptorian Mercenary"
#enc 3
#end

--Heavy Cavalry to Edomite
#selectmonster 20
#clear
#name "Edomite Warrior"
#descr "The Edomites are descendants of a race of giants known as the Avvim.  They are small of stature compared to the Rephaim of Hinnom, but tall by human standards.  They are held in low esteem and considered degenerates at best.  Several groups of Avvim and Edomites have gron frustrated with their status and left their hot, dry ancestral homelands over the centuries."
#copystats 2005
#copyspr 2005
#name "Edomite Warrior"
#att 10
#def 10
#mor 10
#gcost 27
#end

-- Heavy Cavalry tweak
#selectmonster 21
#armor 17
#gcost 22
#end

-- Knight tweak
#selectmonster 22
#gcost 30
#end

-- Light Cavalry to Wolf Rider
#selectmonster 24
#clear
#name "Vaetti Wolf Rider"
#descr "The Vaettir are a tribal people of goblins originating from the deep forests of Jotunheim.  Some vaettir have renounced the leadership of the giantesses known as Gygja and fled the safety of their forests for other lands.  The vaettir wear heavy furs and some ride into battle mounted on their wolven friends.  They are small and stealthy and can hide in enemy territories."
#copystats 282
#copyspr 282
#name "Vaetti Wolf Rider"
#end

-- Light Cavalry to Raptor
#selectmonster 25
#clear
#name "Raptorian Exile"
#descr "Ages ago, the Caelian community was torn apart as the wild clan of the Raptors from Raven's Vale revolted against the rule of the Seraphs.  Under the leadership of the Harab Seraphs, they waged a long and fruitless war with Caelum.  Finally, they were expelled from their home.  Their legends tell of a great ruler who will lead them back to their homeland in triumph."
#copystats 205
#copyspr 205
#name "Raptorian Exile"
#enc 3
#end

-- Light Cavalry tweak
#selectmonster 26
#gcost 20
#end

-- Light Infantry to Lizard Light Infantry
#selectmonster 28
#clear
#name "Lizard Light Infantry"
#descr "Some settlements of lizardmen live far from the deserts and wetlands of C'tis.  These light infantry are armed with spears and javelins.  For protection, they rely upon their scaly skin and round shields.  They have partial resistance to poison."
#copystats 167
#copyspr 167
#name "Lizard Light Infantry"
#end

-- Light Infantry to Humanbred
#selectmonster 29
#clear
#name "Humanbred Infantry"
#descr "The Humanbreds are the result of experiments designed to combine fire elementals and humans.  Some groups have escaped or been released from ther masters and formed societies all their own.  They are resistant to heat, but their flesh is cool enough to wear leather armor and use wooden weapons and tools."
#copystats 372
#copyspr 372
#name "Humanbred Infantry"
#end

-- Militia to Human Light Inftantry
#selectmonster 30
#name "Light Infantry"
#descr "Equipped with light armor, shields and spears, these soldiers are quick but somewhat vulnerable to missile weapons.  They are easily trained and easily armed and thus make up the bulk of the defenses in human lands."
#copyspr 31
#mapmove 2
#str 10
#enc 3
#att 10
#def 10
#mor 10
#gcost 10
#armor 2
#armor 120
#end

-- Militia to Human Light Inftantry
#selectmonster 31
#name "Light Infantry"
#descr "Equipped with light armor, shields and spears, these soldiers are quick but somewhat vulnerable to missile weapons.  They are easily trained and easily armed and thus make up the bulk of the defenses in human lands."
#mapmove 2
#str 10
#enc 3
#att 10
#def 10
#mor 10
#gcost 10
#armor 120
#end

-- Archer tweak (MM2, lighter armor)
#selectmonster 32
#clear
#copystats 17
#copyspr 17
#end

-- Archer to Centaur Archer
#selectmonster 33
#clear
#name "Centaur Archer"
#descr "When the ways of man came to the ancient woods, the centaurs were the first to adopt the new ways.  They donned bronze armor and fought in formations like the soldiers of other nations.  As civilization spread, the centaurs forgot the old ways in their attempt to mimic human society.  The centaurs who were the quickest to adopt the new ways are distrusted by the other halfmen and so many of them have resettled in foreign lands."
#copystats 27
#copyspr 27
#name "Centaur Archer"
#end

-- Human Commander tweak (chainmail)
#selectmonster 34
#armor 8
#end

-- Commander to Centaur Commander
#selectmonster 35
#clear
#name "Centaur Captain"
#descr "When the ways of man came to the ancient woods, the centaurs were the first to adopt the new ways.  They donned bronze armor and fought in formations like the soldiers of other nations.  As civilization spread, the centaurs forgot the old ways in their attempt to mimic human society.  The centaurs who were the quickest to adopt the new ways are distrusted by the other halfmen and so many of them have resettled in foreign lands."
#copystats 232
#copysprite 232
#name "Centaur Captain"
#end

-- Commander to Humanbred
#selectmonster 36
#clear
#name "Humanbred Commander"
#descr "The Humanbreds are the result of experiments designed to combine fire elementals and humans.  Some groups have escaped or been released from ther masters and formed societies all their own.  They are resistant to heat, but their flesh is cool enough to wear leather armor and use wooden weapons and tools."
#copystats 988
#copyspr 988
#name "Humanbred Commander"
#mapmove 2
#gcost 40
#end

-- Heavy Infantry tweak (scale armor and broadsword)
#selectmonster 38
#spr1 "./AwesomePop/0039_heavy_infantry_1.tga"
#spr2 "./AwesomePop/0039_heavy_infantry_2.tga"
#mapmove 2
#weapon 8
#armor 12
#armor 118
#end

-- Heavy Infantry to Satyr Warrior
#selectmonster 39
#clear
#name "Satyr Warrior"
#descr "Satyrs are wild men with the hindquarters and horns of a goat.  They are powerfully built and can easily outrun the swiftest of humans.  Satyrs are selfish beings who lack discipline and will quickly flee from battle if the odds are against them, although some warriors have more discipline.  Their strong connection with Nature gives satyrs strong resistance to magic."
#copystats 1532
#copyspr 1532
#name "Satyr Warrior"
#end

-- Heavy Infantry to Bandar Warrior
#selectmonster 40
#clear
#name "Bandar Exile"
#descr "The Bandar are large, black apes who tower over other apes and monkeys from their homeland.  The colour of their caste is red, the colour of blood and war.  The Bandar are the warrior caste and although few in number, command much influence.  The king and nobility are always Bandar.  Given the vagaries of politics sometimes whole families of Bandar slip away to take their chances in faraway lands, as this warrior has."
#copystats 1132
#copyspr 1132
#name "Bandar Exile"
#end

-- Mounted Commander to Harab Seraph with better paths
#selectmonster 45
#clear
#name "Harab Seraph"
#descr "The Harab Seraphs are the black-feathered rulers of the scattered Raptor societies.  Their necromantic arts that led to their expulsion from Caelum are still practiced and used to command their subjects in death as well as in life."
#spr1 "./AwesomePop/0252_harab_seraph_1.tga"
#spr2 "./AwesomePop/0252_harab_seraph_2.tga"
#ap 18
#mapmove 3
#hp 9
#prot 0
#size 3
#ressize 2
#str 9
#enc 3
#att 8
#def 7
#prec 12
#mr 14
#mor 12
#gcost 110
#rcost 1
#weapon 35
#armor 29
#eyes 2
#flying
#itemslots 15494
#magicskill 1 1
#magicskill 5 1
#custommagic 4352 30
#nametype 111
#end

-- Crossbowman tweak
#selectmonster 47
#mapmove 2
#end

-- Crossbowman to Vanara Archer
#selectmonster 48
#clear
#name "Vanara Mercenary"
#descr "The Vanara constitute the third and most common caste in their homeland.  They are about as big as humans.  The civilized Vanara of the capital use black clothing and the gilded scales of their armor are sewn onto black linen to mark them as lower caste than the Bandar and the White Ones.  Sometimes soldiers dissatisfied with their society--like this one--will sneak away while on campaign."
#copystats 1132
#copyspr 1132
#name "Vanara Mercenary"
#end

-- Crossbowman tweak
#selectmonster 49
#copystats 47
#copyspr 47
#end

-- Slinger tweak
#selectmonster 50
#mapmove 2
#end

-- Longbowman tweak
#selectmonster 55
#mapmove 2
#end

-- Conjurer tweak (raise cost)
#selectmonster 94
#gcost 90
#end

-- Circle Master tweak (raise cost)
#selectmonster 95
#gcost 150
#end

-- Druid add 40% N
#selectmonster 105
#custommagic 8192 40
#end

-- Barbarian Chief to Barbarian Lord
#selectmonster 141
#copystats 147
#copyspr 147
#end

-- Spear Triton to Triton Trooper
#selectmonster 174
#name "Triton Trooper"
#descr "Life underneath the waves corresponds in many ways to that on dry land. Both humans and animals have underwater counterparts. Tritons are the most common of the aquatic humanoids. They appear as humans with legs ending in fins. Triton troopers don coral armor and wield coral spears and knives and carry turtle shell shields."
#copystats 577
#copyspr 577
#name "Triton Trooper"
#end

-- Knife Triton to Spear Triton
#selectmonster 176
#spr1 "./AwesomePop/0174_triton_1.tga"
#spr2 "./AwesomePop/0174_triton_2.tga"
#weapon 31
#end

-- Raptor to Asmeg
#selectmonster 205
#name "Asmeg"
#descr "Asmeger are descendants of the Aesir, ancient gods who were defeated in a cataclysmic war with the Rimtursar ages ago.  Asmeger are larger and stronger than humans, but weaker than the giants of Jotunheim.  Their Jarls are skilled Air mages."
#copystats 1001
#copyspr 1001
#name "Asmeg"
#end

-- High Priest tweak (lower cost)
#selectmonster 241
#gcost 100
#end

-- Harab Seraph to Asmeg Jarl
#selectmonster 252
#name "Asmeg Jarl"
#descr "Asmeger are descendants of the Aesir, ancient gods who were defeated in a cataclysmic war with the Rimtursar ages ago.  Asmeger are larger and stronger than humans, but weaker than the giants of Jotunheim.  Their Jarls are skilled Air mages."
#copystats 1002
#copyspr 1002
#name "Asmeg Jarl"
#end

-- Hoburg Champion to Burgmeister
#selectmonster 272
#name "Burgmeister"
#descr "The Burgmeister is a prominent farmer elected to lead a Hoburg council. Burgmeisters are not particularly good at things military, but they eat a lot and inspire their friends with their merry laughter."
#copystats 1197
#copyspr 1197
#name "Burgmeister"
#gcost 35
#end

-- Ice Druid tweak (lower cost)
#selectmonster 309
#gcost 150
#end

-- Crystal Sorceress tweak
#selectmonster 346
#clearmagic
#magicskill 1 1
#magicskill 4 1
#custommagic 2048 80
#custommagic 256 65
#end

-- Crystal Priestess tweak
#selectmonster 347
#clearmagic
#magicskill 8 1
#custommagic 2048 80
#custommagic 256 25
#end

-- Garnet Sorceress tweak
#selectmonster 349
#clearmagic
#magicskill 0 1
#magicskill 7 1
#custommagic 16384 80
#custommagic 128 65
#end

-- Garnet Priestess tweak
#selectmonster 350
#clearmagic
#magicskill 8 1
#custommagic 16384 80
#custommagic 128 25
#end

-- Jade Sorceress tweak
#selectmonster 352
#clearmagic
#magicskill 2 1
#magicskill 6 1
#custommagic 12288 80
#custommagic 1536 65
#end

-- Jade Priestess tweak
#selectmonster 353
#clearmagic
#magicskill 6 1
#magicskill 8 1
#custommagic 512 80
#end

-- Onyx Sorceress tweak
#selectmonster 355
#clearmagic
#magicskill 3 1
#magicskill 5 1
#custommagic 4096 80
#custommagic 1024 65
#end

-- Onyx Priestess tweak
#selectmonster 356
#clearmagic
#magicskill 8 2
#custommagic 4096 80
#custommagic 1024 25
#end

-- Enchantress tweak (lower cost)
#selectmonster 363
#gcost 200
#end

-- Enchantress tweak (lower cost)
#selectmonster 364
#gcost 200
#end

-- Pegasus Rider tweak (lower cost)
#selectmonster 367
#gcost 32
#end

-- Gryphon change (regains rider, has cost just in case)
#selectmonster 368
#firstshape 612
#gcost 125
#end

-- Nightmare tweak (lower cost)
#selectmonster 369
#gcost 56
#end

-- Jade Maiden tweak (lower cost)
#selectmonster 370
#gcost 28
#end

-- Fire Lord tweak (lower cost, give magic helm, clear start age just in case)
#selectmonster 389
#armor 80
#gcost 180
#startage 0
#end

-- Grey Knight tweak (lower cost)
#selectmonster 390
#gcost 100
#end

-- Grey Lord tweak (lower cost)
#selectmonster 391
#gcost 180
#end

-- Magus tweak (raise cost)
#selectmonster 480
#gcost 110
#end

-- Hoburg Militia tweak (add sling)
#selectmonster 483
#weapon 22
#end

-- Alchemist tweak (lower cost)
#selectmonster 551
#gcost 200
#end

-- Amber Clan Mage tweak
#selectmonster 575
#clearmagic
#magicskill 2 2
#custommagic 128 75
#custommagic 8192 75
#end

-- Gryphon Rider change (secondshape not temporary, increase cost)
#selectmonster 612
#secondshape 368
#gcost 140
#end

-- Navigator tweak (lower cost)
#selectmonster 869
#gcost 150
#end

-- Warrior Mage tweak (lower cost)
#selectmonster 875
#gcost 180
#end

-- Triton Knight tweak (cavalry fix and "appropriate" helmet fix)
#selectmonster 1060
#gcost 36
#armor 24
#end

-- Merman tweak (add net)
#selectmonster 1065
#copystats 1046
#copyspr 1046
#end

-- Hoburg Priest tweak (increase N odds)
#selectmonster 1195
#clearmagic
#magicskill 8 1
#custommagic 8192 50
#end

-- Hog Knight tweak (increase hp to 6)
#selectmonster 1196
#hp 6
#end

-- Horticulturist tweak (increase random magic)
#selectmonster 1198
#clearmagic
#magicskill 6 1
#custommagic 512 50
#custommagic 1024 50
#end

-- Shaman tweak (add random magic)
#selectmonster 1514
#descr "The shamans are the rulers of the barbarian predator lizards and have knowledge in the paths of Nature and Astral magic.  They have partial resistance to poison.  In the absence of rulership by the lizards of C'tis their magical traditions have grown somewhat more ambitious than those of their yoked brethren."
#custommagic 2048 60
#custommagic 8192 60
#end

-- Wolf Tribe Shaman tweak (increase random magic)
#selectmonster 1596
#clearmagic
#magicskill 6 1
#custommagic 4096 25
#custommagic 12288 35
#end

-- Bear Tribe Shaman tweak (increase random magic)
#selectmonster 1597
#clearmagic
#magicskill 6 1
#custommagic 1024 25
#custommagic 9216 35
#end

-- Deer Tribe Shaman tweak (increase random magic)
#selectmonster 1598
#clearmagic
#magicskill 6 1
#custommagic 256 25
#custommagic 8448 35
#end

-- Lion Tribe Witch Doctor tweak (increase random magic)
#selectmonster 1602
#clearmagic
#magicskill 6 1
#custommagic 13440 65
#custommagic 5248 65
#end

-- Jaguar Tribe Priest tweak (change magic slightly)
#selectmonster 1612
#descr "Tribal peoples of the wild follow their priests and totemic spirits.  The priests of the Jaguar Tribes maintain skills in Blood magic and occasionally practice other magic as well."
#clearmagic
#magicskill 7 1
#magicskill 8 1
#custommagic 27264 80
#custommagic 10880 80
#end

-- Toad Tribe tweak (increase random magic)
#selectmonster 1614
#clearmagic
#magicskill 2 1
#custommagic 8704 40
#end

-- Milesian Slinger tweak (add MM2 because it's only fair)
#selectmonster 1779
#mapmove 2
#end